<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改订单金额')" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-order-change-amount" th:object="${order}">
			<input  name="id" type="hidden" th:field="*{id}"/>
			<div class="form-group">
				<label class="col-sm-3 control-label ">订单号：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="sn" id="sn" th:field="*{sn}" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">订单金额：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="amount" id="amount" th:field="*{amount}" required readonly="true">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">修改金额：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="roleSort" id="roleSort" th:field="*{offsetAmount}" required>
					<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> (正数为增加,负数算减少)</span>
				</div>
			</div>
		</form>
	</div>
	<th:block th:include="include :: footer" />
	<script type="text/javascript">
		var prefix = ctx + "normal/order";
	
		$("#form-order-change-amount").validate({
		});

		function edit() {
		}
		
		function submitHandler() {
			if ($.validate.form()) {
				$.operate.save(prefix + "/changeAmountSave", $('#form-order-change-amount').serialize());
			}
	    }
	</script>
</body>
</html>
